package cn.tedu.qxhouserent.house.service;

import cn.tedu.qxhouserent.commons.pojo.vo.PageData;
import cn.tedu.qxhouserent.house.pojo.param.UserHouseCollectionAddNewParam;
import cn.tedu.qxhouserent.house.pojo.vo.HouseListItemVO;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Transactional
public interface UserHouseCollectionService {

    void addNew(UserHouseCollectionAddNewParam userHouseCollectionAddNewParam);

    void deleteByUserId(Long userId,Long houseId);

    PageData<HouseListItemVO> listHouseByUserId(Long userId,Integer pageNum);

    PageData<HouseListItemVO> listHouseByUserId(Long userId,Integer pageNum, Integer pageSize);

    boolean houseCollectionInfo(Long userId, Long houseId);
}
